import { gql } from "@apollo/client";

export const getOrganizations_simple = gql`
  query getOrganizationsForH5($page: PageInput!) {
    getOrganizationsForH5(page: $page) {
      data {
        id
        name
        address
      }
    }
  }
`;

export const getOrganizationInfo = gql`
  query getOrganizationInfo($id: String!) {
    getOrganizationInfo(id: $id) {
      data {
        description
        name
        tags
        id
        orgFrontImg {
          url
        }
        orgRoomImg {
          url
        }
        orgOtherImg {
          url
        }
        logo
        address
        tel
        longitude
        latitude
        identityCardBackImg
        identityCardFrontImg
        businessLicense
      }
      message
    }
  }
`;

export const getOrganizationInfoSimple = gql`
  query getOrganizationInfo($id: String!) {
    getOrganizationInfo(id: $id) {
      data {
        name
        id
        logo
      }
    }
  }
`;
